//
//  UploadView.h
//  ExamSecretary
//
//  Created by mingthink on 16/5/30.
//  Copyright © 2016年 mingthink. All rights reserved.
//上传图片
#import "CorePhotoPickerVCManager.h"
#import <UIKit/UIKit.h>
@protocol UploadViewDelegate;
@interface UploadView : UIView<UIActionSheetDelegate,UIScrollViewDelegate>
//需要赋值
@property (nonatomic,assign) int imgCol;//列
//@property (nonatomic,assign) int imgMargin;//离左右两边的间距
@property (nonatomic,assign) int imgPadding;//图片之间的间距
//@property (nonatomic,assign) int imgTopSpace;//离上下的间距
@property (nonatomic,assign) int MaxImg;//可上传的最大图片数
@property (nonatomic,assign) float sideLength;//图片边长;

@property (nonatomic,assign) NSInteger currentImg;
@property (nonatomic,retain) NSMutableArray *arrayImgView;//初始化imageview数组
@property (nonatomic,retain) NSMutableArray *arrayImgViewDel;
@property (nonatomic,retain) NSMutableArray *arrayImg;//初始化image数组,外部可获取用于上传
@property (nonatomic,retain) UIViewController *vc;
@property (nonatomic,retain) UIScrollView *photoScroll;//展示图片的滑动视图
@property (nonatomic,retain) UIView *photoGlanceView;//展示背景视图;
@property(nonatomic, assign)id<UploadViewDelegate> delegate;
//- (id)setFrame:(CGRect)frame currentVC:(UIViewController *)vc;
- (void)layoutImageViewsWithCurrentVC:(UIViewController *)vc;//初始化,属性赋值完成后调用;
@end
//传出视图纵坐标的改变值
@protocol UploadViewDelegate <NSObject>

- (void)uploadView:(UploadView *)uploadView changeSizeHeight:(CGFloat)valueChanged;
@end